package job.j01;

public class Test {
    public static void main(String[] args) {
        Job job=new Job("李四","heima003",15000);
        Manager manager=new Manager("张三","heima001",13000,2000);
        System.out.println("工号为"+manager.getJobNumber()+"的"+manager.getName()+"，拿着"+manager.getSalaly()+
                "的工资和"+manager.getBonus() +"的奖金,"+manager.work());
        System.out.println("工号为"+job.getJobNumber()+"的"+job.getName()+"程序员，拿着"+job.getSalaly()+"的工资，"+
                job.work());
    }
}
